import request from '@/common/request'

export function getStudentList(params) {
  return request({
    url: '/apikanke/student/list',
    method: 'get',
    params,
  })
}
//新增学生
export function addStudent(data) {
  return request({
    url: '/apikanke/student/add',
    data: data,
    method: 'post',
  })
}

export function updateStudent(data) {
  return request({
    url: '/apikanke/student/update',
    data: data,
    method: 'post',
  })
}

export function getStudentDetail(params) {
  return request({
    url: '/apikanke/student/detail',
    params,
    method: 'get',
  })
}

export function deleteStudent(data) {
  return request({
    url: '/apikanke/student/delete',
    data: data,
    method: 'post',
  })
}

export function assignStudent(data) {
  return request({
    url: '/apikanke/student/assign',
    data: data,
    method: 'post',
  })
}

export function getGradeList(data) {
  return request({
    url: '/apikanke/user/getGradeList',
    method: 'get',
  })
}
export function checkUserOrder(data) {
  return request({
    url: '/apikanke/student/checkUserOrder',
    data: data,
    method: 'post',
  })
}

export function getQywxTagList(params) {
  return request({
    url: '/apikanke/student/getQywxTagList',
    params,
    method: 'get',
  })
}
